var a = require("../../@babel/runtime/helpers/defineProperty"),
  t = require("../../res/www.a9a.cn.js"),
  e = getApp(),
  i = wx.getStorageSync("COOK_U");
Page({
  data: {
    color: e._ZEAI.color,
    rgbcolor: e._ZEAI.rgbcolor,
    topbar: ["基本资料", "详细资料", "择偶要求"],
    currentTab: 0,
    div_sq: !1,
    if_aboutus_box: !1,
    if_aboutus_focus: !1,
    _UDATA: [],
    form_basic: [],
    form_ext: [],
    areaidARR: [],
    areaidARRDEF: [],
    areaidIdx: [],
    area2idARR: [],
    area2idARRDEF: [],
    area2idIdx: [],
    if_ext_box1: !1,
    checkboxvalue: [],
    ifmate: !1,
  },
  onLoad: function (a) {
    wx.showLoading({ title: "玩命加载中...", mask: !0 });
    var r = this;
    e.get_config("_ZEAI").then(function (a) {
      r.setData({ color: e._ZEAI.color, rgbcolor: t.c16_rgb(e._ZEAI.color) });
    }),
      e.get_navigationBarTopHeight(this),
      (i = wx.getStorageSync("COOK_U")),
      t.empty(i.openid)
        ? wx.reLaunch({ url: "../my/my" })
        : e.ajax({
            url: "reg.php?submitok=U",
            data: { openid: i.openid },
            success: function (e) {
              if (1 == e.flag) {
                if (0 == e.SL_U.ifmob)
                  return r.setData({ div_login: !0 }), void wx.hideLoading();
                r.setData({ div_login: !1 });
                var i = 2 == a.currentTab ? 2 : 0;
                r.setData({
                  arealeval: e.arealeval,
                  form_basic: e.form_basic,
                  form_contact: e.form_contact,
                  form_ext: e.form_ext,
                  form_mate: e.form_mate,
                  _UDATA: e._UDATA,
                  areaidARR: e.areaidARR,
                  areaidARRDEF: e.areaidARR.ARRDEF,
                  areaidIdx: e.areaidARR.Idx,
                  area2idARR: e.area2idARR,
                  area2idARRDEF: e.area2idARR.ARRDEF,
                  area2idIdx: e.area2idARR.Idx,
                  currentTab: i,
                  MB: e.MB,
                });
                var d = t.empty(e.SL_U.dataflag_title)
                  ? ""
                  : "【" + e.SL_U.dataflag_title + "】";
                wx.setNavigationBarTitle({
                  title: "完善度" + e.SL_U.myinfobfb + "％" + d,
                }),
                  wx.hideLoading();
              } else
                "flag_1" == e.flag
                  ? (wx.hideLoading(),
                    wx.showLoading({ title: "您已注销或被锁定", mask: !0 }))
                  : wx.reLaunch({ url: "../my/my" });
            },
          });
  },
  getPhoneNumber: function (a) {
    e.getPhoneNumber({ e: a, url: "reg", urlkind: "reLaunch" });
  },
  back: function () {
    1 == this.data.pages.length
      ? wx.exitMiniProgram({ success: function (a) {} })
      : wx.navigateBack();
  },
  topbarFn: function (a) {
    this.setData({ currentTab: a.currentTarget.dataset.idx }),
      wx.pageScrollTo({ scrollTop: 0, duration: 300 });
  },
  btn5Fn: function (a) {
    var r = this,
      d = a.currentTarget.dataset.idx;
    i = wx.getStorageSync("COOK_U");
    var o = this;
    t.empty(o.data.MB) ||
      e.openSetting(o.data.MB, function (a) {
        wx.pageScrollTo({ scrollTop: 0, duration: 300 });
      }),
      3 == d
        ? e.ajax({
            url: "reg.php",
            data: { submitok: "reged_update", openid: i.openid },
            success: function (a) {
              1 == a.flag
                ? wx.showModal({
                    content: a.msg,
                    confirmColor: r.data.color,
                    confirmText: "朕知道了",
                    showCancel: !1,
                    success: function (a) {
                      1 == o.data.pages.length
                        ? wx.switchTab({ url: "../my/my" })
                        : wx.navigateBack({ delta: -1 });
                    },
                  })
                : wx.showModal({
                    content: a.msg,
                    confirmColor: r.data.color,
                    confirmText: "朕知道了",
                    showCancel: !1,
                    success: function (a) {
                      o.setData({ currentTab: 0 });
                    },
                  });
            },
          })
        : this.setData({ currentTab: d });
  },
  getUserProfile: function () {
    var i = this,
      r = wx.getStorageSync("COOK_U");
    t.empty(r.openid) ||
      wx.getUserProfile({
        desc: "用于完善会员资料",
        success: function (d) {
          wx.request({
            url: e.WWW + "/api/wxxcx/reg.php",
            data: {
              submitok: "getUserProfile",
              openid: r.openid,
              unionid: r.unionid,
              nickname: d.userInfo.nickName,
              avatarUrl: d.userInfo.avatarUrl,
            },
            success: function (e) {
              e = t.jsoneval(e.data);
              var r = t.get_F_idx("nickname", i.data.form_basic);
              1 == e.flag
                ? (i.setData(
                    a({ div_sq: !1 }, "form_basic[" + r + "].v", e.U.nickname)
                  ),
                  wx.setNavigationBarTitle({
                    title: "资料完善度 " + e.U.myinfobfb + "％",
                  }))
                : wx.showModal({
                    content: e.msg,
                    confirmColor: i.data.color,
                    confirmText: "朕知道了",
                    showCancel: !1,
                    success: function (a) {},
                  });
            },
          });
        },
      });
  },
  photo_s_cutFn: function (a) {
    a.currentTarget.dataset.value;
    var t = a.currentTarget.dataset.idx;
    if (1 == a.currentTarget.dataset.nomod)
      return (
        wx.showModal({
          content: "头像禁止修改，若需修改请联系客服",
          confirmColor: this.data.color,
          confirmText: "朕知道了",
          showCancel: !1,
          success: function (a) {},
        }),
        !1
      );
    (e.globalData.U.idx = t), wx.navigateTo({ url: "../cropper/cropper" });
  },
  Ffn1_basic: function (t) {
    var e = this,
      i = t.currentTarget.dataset.f,
      r = t.detail.value,
      d = t.currentTarget.dataset.idx;
    this.modupdate({
      F: i,
      V: r,
      success: function (t) {
        e.setData(a({}, "form_basic[" + d + "].v", r));
      },
    });
  },
  Ffn1_contact: function (t) {
    var e = t.currentTarget.dataset.f,
      i = t.detail.value,
      r = t.currentTarget.dataset.idx2;
    this.setData(a({}, "form_contact[" + r + "].v", i)),
      this.modupdate({ F: e, V: i });
  },
  Ffn1_ext: function (t) {
    var e = t.currentTarget.dataset.f,
      i = t.detail.value,
      r = t.currentTarget.dataset.idx;
    this.setData(a({}, "form_ext[" + r + "].v", i)),
      this.modupdate({ F: e, V: i });
  },
  Ffn1_mate: function (t) {
    var e = t.currentTarget.dataset.f,
      i = t.detail.value,
      r = t.currentTarget.dataset.idx;
    this.setData(a({}, "form_mate[" + r + "].v", i)),
      this.modupdate_mate({ F: e, V: i });
  },
  Ffn2_basic: function (t) {
    var e = this,
      i = t.detail.value,
      r = t.currentTarget.dataset.f,
      d = this.data._UDATA[r][i],
      o = t.currentTarget.dataset.idx;
    this.modupdate({
      F: r,
      V: d.i,
      success: function (t) {
        var r;
        e.setData(
          (a((r = {}), "form_basic[" + o + "].k", i),
          a(r, "form_basic[" + o + "].v", d.v),
          r)
        );
      },
    });
  },
  Ffn2_ext: function (t) {
    var e,
      i = t.detail.value,
      r = t.currentTarget.dataset.f,
      d = this.data._UDATA[r][i],
      o = t.currentTarget.dataset.idx;
    this.setData(
      (a((e = {}), "form_ext[" + o + "].k", i),
      a(e, "form_ext[" + o + "].v", d.v),
      e)
    ),
      this.modupdate({ F: r, V: d.i });
  },
  Ffn2_mate: function (t) {
    var e,
      i = t.detail.value,
      r = t.currentTarget.dataset.f,
      d = this.data._UDATA[r][i],
      o = t.currentTarget.dataset.idx;
    this.setData(
      (a((e = {}), "form_mate[" + o + "].k", i),
      a(e, "form_mate[" + o + "].v", d.v),
      e)
    ),
      this.modupdate_mate({ F: r, V: d.i });
  },
  Ffn3_ext: function (a) {
    a.detail.value;
    var e = a.currentTarget.dataset.f,
      i = a.currentTarget.dataset.i,
      r = a.currentTarget.dataset.idx,
      d = t.set_checked(i, this.data._UDATA[e]);
    this.setData({
      ifmate: !1,
      if_div_bottom: !0,
      div_bottom_mask_class: "alpha0_100",
      div_bottom_box_class: "div_upAnm1",
      checkbox_F: e,
      checkbox_idx: r,
      checkbox_arr: d,
    });
  },
  Ffn3_mate: function (a) {
    a.detail.value;
    var e = a.currentTarget.dataset.f,
      i = a.currentTarget.dataset.i,
      r = a.currentTarget.dataset.idx,
      d = t.set_checked(i, this.data._UDATA[e]);
    this.setData({
      ifmate: !0,
      if_div_bottom: !0,
      div_bottom_mask_class: "alpha0_100",
      div_bottom_box_class: "div_upAnm1",
      checkbox_F: e,
      checkbox_idx: r,
      checkbox_arr: d,
    });
  },
  Ffn4_mate: function (e) {
    var i,
      r = e.currentTarget.dataset.f,
      d = e.detail.value,
      o = e.currentTarget.dataset.idx;
    if (d[0] > d[1])
      return wx.showToast({ title: "必须左小右大哦", icon: "none" }), !1;
    var s = this.data.form_mate[o].rang_ARR[0],
      c = t.idx_iv(d, s),
      n = c[0],
      u = c[1];
    this.setData(
      (a((i = {}), "form_mate[" + o + "].rang_Idx", d),
      a(i, "form_mate[" + o + "].v", u),
      i)
    ),
      this.modupdate_mate({ F: r, V: n });
  },
  Ffn4_change_mate: function (a) {},
  checkboxChangeFn: function (a) {
    this.setData({ checkboxvalue: a.detail.value });
  },
  div_bottom_save_Fn: function (i) {
    var r = this.data.checkbox_idx,
      d = t.checkbox_div_list_get_listTitle(
        this.data.checkboxvalue,
        this.data.checkbox_arr
      ),
      o = this.data.checkboxvalue;
    if (o.length >= e.globalData.checkboxMaxNum)
      return (
        wx.showToast({
          title: "最多选择 " + e.globalData.checkboxMaxNum + " 项",
          icon: "none",
        }),
        !1
      );
    var s,
      c,
      n = t.set_checked(o, this.data.checkbox_arr);
    (this.div_bottom_close_Fn(), this.data.ifmate)
      ? (this.setData(
          (a((s = { checkbox_arr: n }), "form_mate[" + r + "].i", o.join(",")),
          a(s, "form_mate[" + r + "].v", d),
          s)
        ),
        this.modupdate_mate({ F: this.data.checkbox_F, V: o.join(",") }))
      : (this.setData(
          (a((c = { checkbox_arr: n }), "form_ext[" + r + "].i", o.join(",")),
          a(c, "form_ext[" + r + "].v", d),
          c)
        ),
        this.modupdate({ F: this.data.checkbox_F, V: o.join(",") }));
  },
  div_bottom_close_Fn: function () {
    var a = this;
    this.setData({
      div_bottom_mask_class: "alpha100_0",
      div_bottom_box_class: "div_upAnm2",
    }),
      setTimeout(function () {
        a.setData({ if_div_bottom: !1 });
      }, 400);
  },
  div_bottom_blank_Fn: function () {},
  birthdayFn: function (t) {
    var e = this,
      i = t.detail.value,
      r = t.currentTarget.dataset.f,
      d = t.currentTarget.dataset.idx;
    this.modupdate({
      F: r,
      V: i,
      success: function (t) {
        e.setData(a({}, "form_basic[" + d + "].v", i));
      },
    });
  },
  areaidFn: function (e) {
    var i = e.currentTarget.dataset.f,
      r = e.detail.value,
      d = e.currentTarget.dataset.idx,
      o = t.areaGetTtitle(r, this.data.areaidARR),
      s = o[0],
      c = o[1];
    this.setData(a({}, "form_basic[" + d + "].v", c)),
      this.modupdate({ F: i, V: s, areatitle: c });
  },
  areaidChangeFn: function (a) {
    var e,
      i,
      r,
      d = parseInt(this.data.arealeval),
      o = a.detail.column,
      s = a.detail.value,
      c =
        (a.currentTarget.dataset.idx,
        a.currentTarget.dataset.ifmate,
        {
          areaidARRDEF: this.data.areaidARRDEF,
          areaidIdx: this.data.areaidIdx,
        }),
      n = this.data.areaidARR.ARR1,
      u = this.data.areaidARR.ARR2,
      f = this.data.areaidARR.ARR3,
      l = this.data.areaidARR.ARR4,
      x = n,
      _ = [],
      h = [],
      m = [];
    switch (o) {
      case 0:
        switch (
          ((e = n[s].i),
          d >= 2 && (i = (_ = t.areaNEW(e, u))[0].i),
          d >= 3 && (r = (h = t.areaNEW(i, f))[0].i),
          d >= 4 && (m = t.areaNEW(r, l)),
          d)
        ) {
          case 1:
            (c.areaidARRDEF = [x]), (c.areaidIdx = [s]);
            break;
          case 2:
            (c.areaidARRDEF = [x, _]), (c.areaidIdx = [s, 0]);
            break;
          case 3:
            (c.areaidARRDEF = [x, _, h]), (c.areaidIdx = [s, 0, 0]);
            break;
          case 4:
            (c.areaidARRDEF = [x, _, h, m]), (c.areaidIdx = [s, 0, 0, 0]);
        }
        break;
      case 1:
        (e = n[c.areaidIdx[0]].i),
          d >= 2 && (i = (_ = t.areaNEW(e, u))[s].i),
          d >= 3 && (r = (h = t.areaNEW(i, f))[0].i),
          d >= 4 && (m = t.areaNEW(r, l)),
          d >= 3 && (c.areaidARRDEF[2] = h),
          d >= 4 && (c.areaidARRDEF[3] = m),
          d >= 2 && (c.areaidIdx[1] = s),
          d >= 3 && (c.areaidIdx[2] = 0),
          d >= 4 && (c.areaidIdx[3] = 0);
        break;
      case 2:
        (e = x[c.areaidIdx[0]].i),
          d >= 2 && (i = (_ = t.areaNEW(e, u))[c.areaidIdx[1]].i),
          d >= 3 && (r = (h = t.areaNEW(i, f))[s].i),
          d >= 4 && (m = t.areaNEW(r, l)),
          d >= 4 && (c.areaidARRDEF[3] = m),
          d >= 3 && (c.areaidIdx[2] = s),
          d >= 4 && (c.areaidIdx[3] = 0);
        break;
      case 3:
        d >= 4 && (c.areaidIdx[3] = s);
    }
    this.setData(c);
  },
  areaidFn_mate: function (e) {
    for (
      var i = e.currentTarget.dataset.kind,
        r = e.currentTarget.dataset.f,
        d = e.detail.value,
        o = e.currentTarget.dataset.idx,
        s = [],
        c = 0;
      c < d.length;
      c++
    )
      d[c] > 0 && s.push(d[c] - 1);
    if (((d = s), "hj" == i)) var n = t.areaGetTtitle(d, this.data.area2idARR);
    else n = t.areaGetTtitle(d, this.data.areaidARR);
    var u = n[0],
      f = n[1];
    this.setData(a({}, "form_mate[" + o + "].v", f)),
      "hj" == i
        ? this.modupdate_mate({ F: r, V: u, areatitle2: f })
        : this.modupdate_mate({ F: r, V: u, areatitle: f });
  },
  areaidChangeFn_mate: function (e) {
    var i,
      r = e.currentTarget.dataset.kind,
      d = "hj" == r ? 4 : parseInt(this.data.arealeval),
      o = e.detail.column,
      s = e.detail.value,
      c = e.currentTarget.dataset.idx,
      n = { def: this.data.form_mate[c].def, idx: this.data.form_mate[c].idx };
    if ("hj" == r)
      var u = this.data.area2idARR.ARR1,
        f = this.data.area2idARR.ARR2,
        l = this.data.area2idARR.ARR3,
        x = this.data.area2idARR.ARR4;
    else
      (u = this.data.areaidARR.ARR1),
        (f = this.data.areaidARR.ARR2),
        (l = this.data.areaidARR.ARR3),
        (x = this.data.areaidARR.ARR4);
    var _,
      h,
      m,
      g = [{ i: "0", v: "不限", f: "0" }],
      R = u,
      b = [],
      v = [],
      p = [];
    switch (((R = g.concat(R)), o)) {
      case 0:
        if (0 == s)
          switch (
            ((n.def[0] = R),
            d >= 2 && (n.def[1] = g),
            d >= 3 && (n.def[2] = g),
            d >= 4 && (n.def[3] = g),
            d)
          ) {
            case 1:
              n.idx = [0];
              break;
            case 2:
              n.idx = [0, 0];
              break;
            case 3:
              n.idx = [0, 0, 0];
              break;
            case 4:
              n.idx = [0, 0, 0, 0];
          }
        else
          switch (((_ = u[s - 1].i), d)) {
            case 1:
              (n.def = [R]), (n.idx = [s]);
              break;
            case 2:
              (b = g.concat(t.areaNEW(_, f))),
                (n.def = [R, b]),
                (n.idx = [s, 0]);
              break;
            case 3:
              (b = g.concat(t.areaNEW(_, f))),
                (n.def = [R, b, g]),
                (n.idx = [s, 0, 0]);
              break;
            case 4:
              (b = g.concat(t.areaNEW(_, f))),
                (n.def = [R, b, g, g]),
                (n.idx = [s, 0, 0, 0]);
          }
        break;
      case 1:
        if (0 == s)
          d >= 3 && (n.def[2] = g),
            d >= 4 && (n.def[3] = g),
            d >= 2 && (n.idx[1] = s),
            d >= 3 && (n.idx[2] = 0),
            d >= 4 && (n.idx[3] = 0);
        else
          switch (d) {
            case 2:
              n.idx[1] = s;
              break;
            case 3:
              (_ = u[n.idx[0] - 1].i),
                (h = (b = g.concat(t.areaNEW(_, f)))[s].i),
                (v = g.concat(t.areaNEW(h, l))),
                (n.def[2] = v),
                (n.idx[1] = s),
                (n.idx[2] = 0);
              break;
            case 4:
              (_ = u[n.idx[0] - 1].i),
                (h = (b = g.concat(t.areaNEW(_, f)))[s].i),
                (v = g.concat(t.areaNEW(h, l))),
                (n.def[2] = v),
                (n.def[3] = g),
                (n.idx[1] = s),
                (n.idx[2] = 0),
                (n.idx[3] = 0);
          }
        break;
      case 2:
        if (0 == s)
          d >= 4 && (n.def[3] = g),
            d >= 3 && (n.idx[2] = s),
            d >= 4 && (n.idx[3] = 0);
        else
          switch (d) {
            case 3:
              n.idx[2] = s;
              break;
            case 4:
              (_ = u[n.idx[0] - 1].i),
                (h = (b = g.concat(t.areaNEW(_, f)))[n.idx[1]].i),
                (m = (v = g.concat(t.areaNEW(h, l)))[s].i),
                (p = g.concat(t.areaNEW(m, x))),
                (n.def[3] = p),
                (n.idx[2] = s),
                (n.idx[3] = 0);
          }
        break;
      case 3:
        d >= 4 && (n.idx[3] = s);
    }
    this.setData(
      (a((i = {}), "form_mate[" + c + "].def", n.def),
      a(i, "form_mate[" + c + "].idx", n.idx),
      i)
    );
  },
  area2idFn: function (e) {
    var i = e.currentTarget.dataset.f,
      r = e.detail.value,
      d = e.currentTarget.dataset.idx,
      o = t.areaGetTtitle(r, this.data.area2idARR),
      s = o[0],
      c = o[1];
    this.setData(a({}, "form_basic[" + d + "].v", c)),
      this.modupdate({ F: i, V: s, area2title: c });
  },
  area2idChangeFn: function (a) {
    var e,
      i,
      r,
      d = a.detail.column,
      o = a.detail.value,
      s =
        (a.currentTarget.dataset.idx,
        {
          area2idARRDEF: this.data.area2idARRDEF,
          area2idIdx: this.data.area2idIdx,
        }),
      c = this.data.area2idARR.ARR1,
      n = this.data.area2idARR.ARR2,
      u = this.data.area2idARR.ARR3,
      f = this.data.area2idARR.ARR4,
      l = c,
      x = [],
      _ = [],
      h = [];
    switch (d) {
      case 0:
        (e = c[o].i),
          (i = (x = t.areaNEW(e, n))[0].i),
          (r = (_ = t.areaNEW(i, u))[0].i),
          (h = t.areaNEW(r, f)),
          (s.area2idARRDEF = [l, x, _, h]),
          (s.area2idIdx = [o, 0, 0, 0]);
        break;
      case 1:
        (e = c[s.area2idIdx[0]].i),
          (i = (x = t.areaNEW(e, n))[o].i),
          (r = (_ = t.areaNEW(i, u))[0].i),
          (h = t.areaNEW(r, f)),
          (s.area2idARRDEF[2] = _),
          (s.area2idARRDEF[3] = h),
          (s.area2idIdx[1] = o),
          (s.area2idIdx[2] = 0),
          (s.area2idIdx[3] = 0);
        break;
      case 2:
        (e = l[s.area2idIdx[0]].i),
          (i = (x = t.areaNEW(e, n))[s.area2idIdx[1]].i),
          (r = (_ = t.areaNEW(i, u))[o].i),
          (h = t.areaNEW(r, f)),
          (s.area2idARRDEF[3] = h),
          (s.area2idIdx[2] = o),
          (s.area2idIdx[3] = 0);
        break;
      case 3:
        s.area2idIdx[3] = o;
    }
    this.setData(s);
  },
  aboutusFn: function (a) {
    var t = this;
    t.setData({ if_aboutus_box: !0 }),
      setTimeout(function () {
        t.setData({ if_aboutus_focus: !0 });
      }, 500);
  },
  aboutusMaskFn: function () {
    this.setData({ if_aboutus_box: !1, if_aboutus_focus: !1 });
  },
  aboutus_submitFn: function (t) {
    var e = t.currentTarget.dataset.f,
      i = t.currentTarget.dataset.idx,
      r = t.detail.value.aboutus;
    this.setData(
      a(
        { if_aboutus_box: !1, if_aboutus_focus: !1 },
        "form_basic[" + i + "].v",
        r
      )
    ),
      this.modupdate({ F: e, V: r });
  },
  weixin_picFn: function (i) {
    var r = this,
      d = (i.currentTarget.dataset.f, i.currentTarget.dataset.idx2),
      o = wx.getStorageSync("COOK_U");
    wx.chooseImage({
      success: function (i) {
        var s = i.tempFilePaths;
        wx.uploadFile({
          url: e.WWW + "/api/wxxcx/reg.php",
          filePath: s[0],
          name: "pic",
          formData: { submitok: "weixin_pic_update", openid: o.openid },
          success: function (e) {
            "1" == (e = t.jsoneval(e.data)).flag
              ? (wx.setNavigationBarTitle({
                  title: "资料完善度 " + e.myinfobfb + "％",
                }),
                r.setData(a({}, "form_contact[" + d + "].v", e.weixin_pic)))
              : wx.showModal({
                  content: e.msg,
                  confirmColor: r.data.color,
                  confirmText: "朕知道了",
                  showCancel: !1,
                  success: function (a) {},
                });
          },
        });
      },
    });
  },
  modupdate: function (a) {
    var i = this,
      r = wx.getStorageSync("COOK_U");
    wx.request({
      url: e.WWW + "/api/wxxcx/reg.php",
      data: {
        submitok: "modupdate",
        openid: r.openid,
        F: a.F,
        V: a.V,
        areatitle: a.areatitle,
        area2title: a.area2title,
      },
      success: function (e) {
        1 == (e = t.jsoneval(e.data)).flag
          ? (wx.setNavigationBarTitle({
              title: "资料完善度 " + e.myinfobfb + "％",
            }),
            "function" == typeof a.success && a.success(e))
          : wx.showModal({
              content: e.msg,
              confirmColor: i.data.color,
              confirmText: "朕知道了",
              showCancel: !1,
              success: function (a) {},
            });
      },
    });
  },
  modupdate_mate: function (a) {
    var i = this,
      r = wx.getStorageSync("COOK_U");
    wx.request({
      url: e.WWW + "/api/wxxcx/reg.php",
      data: {
        submitok: "modupdate_mate",
        openid: r.openid,
        F: a.F,
        V: a.V,
        areatitle: a.areatitle,
        areatitle2: a.areatitle2,
      },
      success: function (a) {
        "1" == (a = t.jsoneval(a.data)).flag
          ? wx.setNavigationBarTitle({
              title: "资料完善度 " + a.myinfobfb + "％",
            })
          : wx.showModal({
              content: a.msg,
              confirmColor: i.data.color,
              confirmText: "朕知道了",
              showCancel: !1,
              success: function (a) {},
            });
      },
    });
  },
  onReady: function () {},
  onShow: function () {
    var t = e.globalData.U.photo_s,
      i = e.globalData.U.idx;
    t && this.setData(a({}, "form_basic[" + i + "].i", t));
  },
  ifagreeFn: function (a) {
    1 == a.detail.value
      ? this.setData({ ifagree: !0 })
      : this.setData({ ifagree: !1 });
  },
  ifagree_passFn: function () {
    wx.showToast({
      title: "请先点击同意《用户协议》和《隐私条款》",
      icon: "none",
      mask: !0,
      duration: 3e3,
    });
  },
  privacy_agree: function (a) {
    console.log("agree");
  },
  privacy_disagree: function (a) {
    console.log("disagree"), wx.exitMiniProgram();
  },
});
